﻿@model N03_11HCA_HTTTHD.Models.ChaoBan_Them_DichVu
@using N03_11HCA_HTTTHD.Models;
@{
    ViewBag.Title = "Thêm dịch vụ";
    Layout = "~/Views/Shared/_LayoutKho.cshtml";
}
 
@section JavaScriptCSSImport{
    <link href="@Url.Content("~/Content/mycontent/list_counter.css")" rel="stylesheet" type="text/css"/>
    <!--kiem tra can ban dich vu them vao -->
    <script type="text/javascript">
        function validateForm() {
            var tentv = document.forms["ChaoBan_Them_DichVu"]["@ChaoBan_Them_DichVu.Name_tenViet"].value;
            var tenanh = document.forms["ChaoBan_Them_DichVu"]["@ChaoBan_Them_DichVu.Name_tenAnh"].value;
            var tukhoa = document.forms["ChaoBan_Them_DichVu"]["@ChaoBan_Them_DichVu.Name_txttuKhoa"].value;
            //var hinhanh = document.forms["ChaoBan_Them_DichVu"]["@ChaoBan_Them_DichVu.Name_fileHinhAnhDinhKem"].value;
            var doituongsudung = document.forms["ChaoBan_Them_DichVu"]["@ChaoBan_Them_DichVu.Name_txtDoiTuongSuDung"].value;
            //ID thiết bị, ID phần mềm, ID dịch vụ, ID chuyển giao nếu chưa chọn trên form
            if (tentv == null || tentv == "") {
                alert("Vui lòng nhập tên tiếng Việt");                                             
                return false;
            }

            if (tenanh == null ||tenanh == "") {
                alert("Vui lòng nhập tên tiếng Anh");
                return false;
            }
            if (tukhoa == null || tukhoa == "") {
                alert("Vui lòng nhập từ khóa");
                return false;
            }
            if (tukhoa == null || tukhoa == "") {
                alert("Vui lòng nhập đối tượng sử dụng");
                return false;
            }
            return true;
        }
    </script>
}

<h2>Thêm chào bán - Dịch vụ</h2>

<form name = "ChaoBan_Them_DichVu" method = "post" action = "/Kho/Them_DichVu" onsubmit="return validateForm()">

<table width="100%" border="0">
            <tr>
                <td align="left" colspan="2" class="table">
                    <span id="">PHẦN THÔNG TIN CHUNG</span>
                </td>
            </tr>
            
            <tr>
                <td width="35%">
                    <span >Tên tiếng Việt:</span>
                    <span >*</span>
                </td>
                <td>
                    <input name="@ChaoBan_Them_DichVu.Name_tenViet" type="text"id="" />
                    <span id="" ></span>
                </td>
            </tr>
            <tr>
                <td >
                    <span >Tên tiếng Anh:</span>
                </td>
                <td>
                    <input name="@ChaoBan_Them_DichVu.Name_tenAnh" type="text"  id=""  />
                </td>
            </tr>
            <tr>
                <td >
                    <span >Xuất xứ:</span>
                    <span>*</span>
                </td>
                <td>
                <select name="@ChaoBan_Them_DichVu.Name_sllXuatXu" id="slXuatXu" >
				<option value="Albania">Albania</option>
				<option value="Algeria">Algeria</option>
				<option value="American Samoa">American Samoa</option>
				<option value="Antarctica">Antarctica</option>
				<option value="Angola">Angola</option>
				<option value="Anguilla">Anguilla</option>
				<option value="APCTT">APCTT</option>
				<option value="Argentina">Argentina</option>
				<option value="Armenia">Armenia</option>
				<option value="Aruba">Aruba</option>
				<option value="Australia">Australia</option>
				<option value="Austria">Austria</option>
				<option value="Azerbaijan">Azerbaijan</option>
				<option value="Bahamas">Bahamas</option>
				<option value="Bahrain">Bahrain</option>
				<option value="Bangladesh">Bangladesh</option>
				<option value="Barbados">Barbados</option>
				<option value="Belarus">Belarus</option>
				<option value="Belgium">Belgium</option>
				<option value="Belize">Belize</option>
				<option value="Benin">Benin</option>
				<option value="Bermuda">Bermuda</option>
				<option value="Bhutan">Bhutan</option>
				<option value="Bolivia">Bolivia</option>
				<option value="Botswana">Botswana</option>
				<option value="Bouvet Island">Bouvet Island</option>
				<option value="Brazil">Brazil</option>
				<option value="Brunei">Brunei</option>
				<option value="Bulgaria">Bulgaria</option>
				<option value="Burkina Faso">Burkina Faso</option>
				<option value="Burundi">Burundi</option>
				<option value="Cambodia">Cambodia</option>
				<option value="Cameroon">Cameroon</option>
				<option value="Canada">Canada</option>
				<option value="Cape Verde">Cape Verde</option>
				<option value="Cayman Islands">Cayman Islands</option>
				<option value="Comoros">Comoros</option>
				<option value="Congo">Congo</option>
				<option value="Congo">Congo</option>
				<option value="Cook Islands">Cook Islands</option>
				<option value="Costa Rica">Costa Rica</option>
				<option value="Cuba">Cuba</option>
				<option value="Cyprus">Cyprus</option>
				<option value="Czech Republic">Czech Republic</option>
				<option value="Chad">Chad</option>
				<option value="Chile">Chile</option>
				<option value="China">China</option>
				<option value="Denmark">Denmark</option>
				<option value="Djibouti">Djibouti</option>
				<option value="Dominica">Dominica</option>
				<option value="East Timor">East Timor</option>
				<option value="Ecuador">Ecuador</option>
				<option value="Egypt">Egypt</option>
				<option value="El Salvado">El Salvador</option>
				<option value="Eritrea">Eritrea</option>
				<option value="Estonia">Estonia</option>
				<option value="Kazakhstan">Kazakhstan</option>
				<option value="Kenya">Kenya</option>
				<option value="Kiribati">Kiribati</option>
				<option value="Korea">Korea</option>
				<option value="Macedonia">Macedonia</option>
				<option value="Mayotte">Mayotte</option>
				<option value="Mexico">Mexico</option>
				<option value="Micronesia">Micronesia</option>
				<option value="Moldova">Moldova</option>
				<option value="Monaco">Monaco</option>
				<option value="Panama">Panama</option>
				<option value="Paraguay">Paraguay</option>
				<option value="Peru">Peru</option>
				<option value="Samoa">Samoa</option>
				<option value="Sudan">Sudan</option>
				<option value="Suriname">Suriname</option>
				<option value="Swaziland">Swaziland</option>
				<option value="Uganda">Uganda</option>
				<option value="Ukraine">Ukraine</option>
				<option value="UNIDO">UNIDO</option>
				<option value="Venezuela">Venezuela</option>
				<option selected="selected" value="Vietnam">Vietnam</option>
				<option value="Yemen">Yemen</option>
				<option value="Yugoslavia">Yugoslavia</option>
				<option value="Zambia">Zambia</option>
				<option value="Zimbabwe">Zimbabwe</option>

			</select>
                    <span ></span> 
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <span>Mô tả:</span><span>*</span></td>
            </tr>
            <tr>
                <td colspan="2" >
                    <textarea id="@ChaoBan_Them_DichVu.Name_txtMoTa" name="@ChaoBan_Them_DichVu.Name_txtMoTa" cols="72" rows="10"></textarea>
			
                    <span id="" style="color:Red;display:none;"></span>
                </td>
            </tr>
            <tr>

                <td valign="top" colspan="2">
                    <span id="">Ưu điểm:</span></td>
            </tr>
            <tr>

                <td colspan="2"><textarea id="@ChaoBan_Them_DichVu.Name_txtUuDiem" name="@ChaoBan_Them_DichVu.Name_txtUuDiem" cols="72" rows="10"></textarea>
			
                </td>
            </tr>
            <tr>

                <td colspan="2">
                    <a  href="">Đính kèm hình sản phẩm</a>
                    (&lt;50 Kb)</td>
            </tr>
            <tr>
                <td colspan="2">
                    
                </td>
            </tr>
            <tr>
                
                <td colspan="2">
                    <a name="@ChaoBan_Them_DichVu.Name_fileDinhKem" href=")">Đính kèm tệp</a>
                    (&lt;50 Kb)</td>
            </tr>
            <tr>
                <td  valign="top" colspan="2" >
                     
                </td>
            </tr>
        </table>
    
    <!--thông tin dịch vụ ------->

            <table border="0">
                        <tr>
                            <td colspan="2" >
                                <span>THÔNG TIN DỊCH VỤ</span></td>
                        </tr>
                        
                          <tr>
                          <td>Đối tượng sử dụng</td>
                           <td colspan="2"><textarea id="@ChaoBan_Them_DichVu.Name_txtDoiTuongSuDung" name="@ChaoBan_Them_DichVu.Name_txtDoiTuongSuDung" cols="72" rows="10"></textarea></td>
                          </tr>           
                            
      
                    </table>
               

               <!--chuyen giao -->
                     <table>
            <tr>
                <td colspan="1" ></td>
                <td>
          
                    <span>PHƯƠNG THỨC CHUYỂN GIAO</span></td>
           </tr>
           
            <tr>
                <td >
                </td>
                <td >
                    <span>Chuyển giao:</span></td>
                <td >
                       @for (int i = 0; i < @Model.ListChuyenGiao.Count; i++)
                       {

                           String id = "dsChuyenGiao" + @Model.ListChuyenGiao[i].ID;
                           
                           <span ><input id="@id" type="checkbox" name="@ChaoBan_Them_DichVu.Name_chuyenGiao" value = "@Model.ListChuyenGiao[i].ID" /><label  for="@id">@Model.ListChuyenGiao[i].Ten</label></span>
                           
                       }
                         
                        
                </td>
            </tr>
     
                        
            <tr>
                <td >
                </td>
                <td >
                    <span> Cung cấp:</span></td>
                <td >
                   @for (int i = 0; i < @Model.ListCungCap.Count; i++)
                   {
                       String id = "dsCungCap" + @Model.ListCungCap[i].ID;
                       
                         <span ><input id="@id" type="checkbox" value="@Model.ListCungCap[i].ID" name="@ChaoBan_Them_DichVu.Name_cungCap" /><label for="@id">@Model.ListCungCap[i].Ten</label></span>
                   }
                   
                </td>
            </tr>
           
          
            <tr>
                <td >
                </td>
                <td  >
                    <span>Giá khởi điểm:</span></td>
                <td>
                    <input name="@ChaoBan_Them_DichVu.Name_giaKhoiDiem" type="text" value="0" id="@ChaoBan_Them_DichVu.Name_giaKhoiDiem" />
                    <span>đến</span>
                    <input name="@ChaoBan_Them_DichVu.Name_giaKetThuc" type="text" value="0" id="@ChaoBan_Them_DichVu.Name_giaKetThuc" /><select name="@ChaoBan_Them_DichVu.Name_donviTinh" id="@ChaoBan_Them_DichVu.Name_donviTinh">
				<option selected="selected" value="B">Tỉ</option>
				<option value="H">Trăm</option>
				<option value="K">Ngàn</option>
				<option value="M">Triệu</option>

			</select><select name="@ChaoBan_Them_DichVu.Name_donviTienTe" id="@ChaoBan_Them_DichVu.Name_donviTienTe" >
				<option selected="selected" value="AUD">Đôla Úc</option>
				<option value="BP">Bảng Anh</option>
				<option value="USD">Đôla Mỹ</option>
				<option value="VND">Việt nam đồng</option>

			</select>

                    </td>
            </tr>
            <tr>
                <td >
                </td>
                <td >
                </td>
                <td >
                    <span >Giá khởi điểm cao nhất phải nhỏ hơn giá thấp nhất.</span></td>
            </tr>
            <tr>
                <td colspan="1">
                </td>
                <td colspan="2">
                    <span>Điều kiện khác:</span>
                                <span>Ví dụ: 120 USD (FOB)</span></td>
            </tr>
            <tr>
                <td colspan="1">
                </td>
                <td colspan="2">
                    <textarea name="@ChaoBan_Them_DichVu.Name_txtDieuKienKhac" rows="5" cols="72" id="@ChaoBan_Them_DichVu.Name_txtDieuKienKhac"></textarea>
                </td>
            </tr>
            <tr>
                <td colspan="1">
                </td>
                <td  colspan="2">
                    <span>Chi phí khác:</span>
                    <span>Ví dụ: chi phí đào tạo, phí tư vấn kỹ thuật, phí chuyển giao bí quyết</span></td>
            </tr>
            <tr>
                <td colspan="1" >
                </td>
                <td   colspan="2">
                    <textarea name="@ChaoBan_Them_DichVu.Name_chiPhiKhac" rows="5" cols="72" id="" ></textarea></td>
            </tr>
            <tr>
                <td colspan="1" >
                </td>
                <td  colspan="2">
                    <span>Bảo hành:</span></td>
            </tr>
            <tr>
                <td colspan="1" >
                </td>
                <td  colspan="2">
                    <textarea name="@ChaoBan_Them_DichVu.Name_baoHanh" rows="5" cols="20" id=""></textarea></td>
            </tr>
            <tr>
                <td >
                </td>
                <td >
                    <span>Chuyển giao cho:</span></td>
                <td >
                                <input name="@ChaoBan_Them_DichVu.Name_chuyenGiaoCho" type="text" value="0" maxlength="6" id=""  />
                                <span id="">đơn vị</span>
                                
                </td>
            </tr>
            <tr>
                <td colspan="1" >
                </td>
                <td colspan="2" >
                                <span>Liệt kê một số đơn vị đã chuyển giao :</span></td>
            </tr>
            <tr>
                <td colspan="1" >
                </td>
                <td  colspan="2" >
                    <textarea name="@ChaoBan_Them_DichVu.Name_donViDaChuyenGiao" rows="5" cols="20" id=""></textarea></td>
            </tr>
       </table>
    
<!----------thông tin phân loại------------------------------------->
<table width = "100%">
    <tr>
         <td colspan="2">
                    <span>THÔNG TIN PHÂN LOẠI</span>
         </td>
    </tr>
    <tr>
        <td>Phân loại</td>
        <td>
        @for (int i = 0; i < @Model.ListPhanLoai.Count; i++)
                   {
                       String id = "dsDanhMuc" + @Model.ListPhanLoai[i].ID;
                       
                         <span ><input id="@id" type="checkbox" value="@Model.ListPhanLoai[i].ID" name="@ChaoBan_Them_DichVu.Name_slPhanLoai" /><label for="@id">@Model.ListPhanLoai[i].TenDanhMuc</label></span>
                   }
        </td>
    </tr>
    <tr>
    <td>Lĩnh vực</td>
         <td>
		@for (int i = 0; i < @Model.ListLinhVuc.Count; i++)
                   {
                       String id = "dsLinhVuc" +@Model.ListLinhVuc[i].ID;
                       
                         <span ><input id="@id" type="checkbox" value="@Model.ListLinhVuc[i].ID" name="@ChaoBan_Them_DichVu.Name_slLinhVuc" /><label for="@id">@Model.ListLinhVuc[i].Ten</label></span>
                   }		
				
				
        </select>
        </td>   
    </tr>
        <tr>
        <td>Từ khóa</td>
        <td   colspan="2">
                    <textarea name="@ChaoBan_Them_DichVu.Name_txttuKhoa" rows="5" cols="72" id="" ></textarea></td>
        </tr>    
</table>
			
            <table>
            <tbody><tr>
        <td>
        </td>
        <td><input onclick = "validateForm" type="submit" name="@ChaoBan_Them_DichVu.Name_btnSubmit" value="Lưu thông tin" id=""@ChaoBan_Them_DichVu.Name_btnSubmit /> 
            &#160;<input type="submit" name="@ChaoBan_Them_DichVu.Name_btnHuy" value="Hủy" id = "@ChaoBan_Them_DichVu.Name_btnHuy"/></td></tr>

       </tbody>
       </table>

</form>

